﻿using System.ComponentModel.DataAnnotations;

namespace Step4.Unit9.Models
{
    public class LoginViewModel
    {
        [Display(Name ="用户名")]
        [Required(ErrorMessage ="请输入用户名")]
        public string? UserName { get; set; }

        [Display(Name ="密码")]
        [Required(ErrorMessage ="请输入密码")]
        public string? Pwd { get; set; }

        public string? RedirectUrl { get; set; }
    }
}
